package com.spa.application.command.member;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class MemberFeedbackAddCommand {

    private Long cityId;

    @NotBlank(message = "类型必填")
    private String type;

    @NotBlank(message = "内容必填")
    private String content;

    private List<String> imgList;

    @NotBlank(message = "手机号必填")
    @Size(min = 11, max = 11, message = "手机号只能为11位")
    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    private String phone;

    private String cause;

}
